package com.shangyueshang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shangyueshang.model.Product;
import com.shangyueshang.request.PageReq;
import com.shangyueshang.request.ProductDTO;
import com.shangyueshang.response.HttpResult;
import com.shangyueshang.response.PageResult;

/**
 * @author JokeyFeng
 * @date: 2022/1/15 23:00
 * @project: shangyueshang
 * @package: com.shangyueshang.service
 * @comment:
 */
public interface ProductService extends IService<Product> {
	
	/**
	 * 分页查询
	 *
	 * @param pageReq
	 * @return
	 */
	PageResult<Product> findPage(PageReq pageReq);
	
	/**
	 * 保存产品信息
	 *
	 * @param productDTO
	 * @return
	 */
	HttpResult<Boolean> saveUpdate(ProductDTO productDTO);
}
